Skip to main content

prepare image

Type

command

Summary

Preloads an image into memory.

Syntax

prepare image <imageName>
prepare image file <filename>

Description

Use the prepare image command to speed up execution when showing image data.

Use the prepare image command to preload an image at some time before it is needed. Then access the image and display it as needed on your stack. Since the image is already cached into memory, it displays instantly.

Parameters

NameTypeDescription

imageName

The name specifies what image is forced to be decompressed into the image cache.

filename

The location and name of the image file you want to load and decompress into the image data cache. Since the image data cache is keyed on the absolute filename, any images which reference that file are able to use the data from the cache. This assumes that the cache has not been flushed.

Examples

prepare image "myImage"
prepare image file "/Disk/Folder/logo.jpg"

command: prepare

glossary: command, execute

Compatibility and Support

Introduced

LiveCode 6.0.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?